package com.ywgt.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 账户流水表
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dts_account_trace")
@ApiModel(value="AccountTrace对象", description="账户流水表")
public class AccountTrace implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "操作流水")
    private String traceSn;

    @ApiModelProperty(value = "用户表的用户ID")
    private Integer userId;

    @ApiModelProperty(value = "操作类型 0:系统结算 1:用户提现")
    private Integer type;

    @ApiModelProperty(value = "操作金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "总申请金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "申请时间")
    @TableField(fill = FieldFill.INSERT)
    private Date addTime;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "短信提取码")
    private String smsCode;

    @ApiModelProperty(value = "审批状态")
    private Integer status;

    @ApiModelProperty(value = "消息内容")
    private String traceMsg;

    @ApiModelProperty(value = "审批时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
